package cn.panda.edu.service.impl;

import cn.panda.edu.dao.StoreMapper;
import cn.panda.edu.model.Store;
import cn.panda.edu.service.StoreService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 * 类描述：  StoreService接口的实现类
 * @author: 张春雷
 * @date： 2018-01-18 上午11:10:12
 */
@Service
public class StoreServiceImpl implements StoreService {
	
	@Resource
	private StoreMapper storemapper;
	/**
	 * 查询所有题库信息
	 */
	@Override
	public PageInfo<Store> findAllStore(Integer pageIndex,Integer pageSize) {
		// TODO Auto-generated method stub
		PageHelper.startPage(pageIndex,pageSize);
		List<Store> list = storemapper.findAllStore();
		PageInfo<Store> pageInfo=new PageInfo<>(list);
		return pageInfo;
	}
	
	
}
